﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001083 RID: 4227
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournWorkbenchInfo : IMessage<RogueTournWorkbenchInfo>, IMessage, IEquatable<RogueTournWorkbenchInfo>, IDeepCloneable<RogueTournWorkbenchInfo>, IBufferMessage
	{
		// Token: 0x1700354D RID: 13645
		// (get) Token: 0x0600BCB6 RID: 48310 RVA: 0x001FC86B File Offset: 0x001FAA6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournWorkbenchInfo> Parser
		{
			get
			{
				return RogueTournWorkbenchInfo._parser;
			}
		}

		// Token: 0x1700354E RID: 13646
		// (get) Token: 0x0600BCB7 RID: 48311 RVA: 0x001FC872 File Offset: 0x001FAA72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournWorkbenchInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700354F RID: 13647
		// (get) Token: 0x0600BCB8 RID: 48312 RVA: 0x001FC884 File Offset: 0x001FAA84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournWorkbenchInfo.Descriptor;
			}
		}

		// Token: 0x0600BCB9 RID: 48313 RVA: 0x001FC88B File Offset: 0x001FAA8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournWorkbenchInfo()
		{
		}

		// Token: 0x0600BCBA RID: 48314 RVA: 0x001FC89E File Offset: 0x001FAA9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournWorkbenchInfo(RogueTournWorkbenchInfo other) : this()
		{
			this.workbenchId_ = other.workbenchId_;
			this.workbenchFuncList_ = other.workbenchFuncList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BCBB RID: 48315 RVA: 0x001FC8D4 File Offset: 0x001FAAD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournWorkbenchInfo Clone()
		{
			return new RogueTournWorkbenchInfo(this);
		}

		// Token: 0x17003550 RID: 13648
		// (get) Token: 0x0600BCBC RID: 48316 RVA: 0x001FC8DC File Offset: 0x001FAADC
		// (set) Token: 0x0600BCBD RID: 48317 RVA: 0x001FC8E4 File Offset: 0x001FAAE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorkbenchId
		{
			get
			{
				return this.workbenchId_;
			}
			set
			{
				this.workbenchId_ = value;
			}
		}

		// Token: 0x17003551 RID: 13649
		// (get) Token: 0x0600BCBE RID: 48318 RVA: 0x001FC8ED File Offset: 0x001FAAED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<WorkbenchFuncIdInfo> WorkbenchFuncList
		{
			get
			{
				return this.workbenchFuncList_;
			}
		}

		// Token: 0x0600BCBF RID: 48319 RVA: 0x001FC8F5 File Offset: 0x001FAAF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournWorkbenchInfo);
		}

		// Token: 0x0600BCC0 RID: 48320 RVA: 0x001FC904 File Offset: 0x001FAB04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournWorkbenchInfo other)
		{
			return other != null && (other == this || (this.WorkbenchId == other.WorkbenchId && this.workbenchFuncList_.Equals(other.workbenchFuncList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BCC1 RID: 48321 RVA: 0x001FC954 File Offset: 0x001FAB54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.WorkbenchId != 0U)
			{
				num ^= this.WorkbenchId.GetHashCode();
			}
			num ^= this.workbenchFuncList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BCC2 RID: 48322 RVA: 0x001FC9A1 File Offset: 0x001FABA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BCC3 RID: 48323 RVA: 0x001FC9A9 File Offset: 0x001FABA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BCC4 RID: 48324 RVA: 0x001FC9B4 File Offset: 0x001FABB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.workbenchFuncList_.WriteTo(ref output, RogueTournWorkbenchInfo._repeated_workbenchFuncList_codec);
			if (this.WorkbenchId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.WorkbenchId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BCC5 RID: 48325 RVA: 0x001FCA04 File Offset: 0x001FAC04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.WorkbenchId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorkbenchId);
			}
			num += this.workbenchFuncList_.CalculateSize(RogueTournWorkbenchInfo._repeated_workbenchFuncList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BCC6 RID: 48326 RVA: 0x001FCA58 File Offset: 0x001FAC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournWorkbenchInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.WorkbenchId != 0U)
			{
				this.WorkbenchId = other.WorkbenchId;
			}
			this.workbenchFuncList_.Add(other.workbenchFuncList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BCC7 RID: 48327 RVA: 0x001FCAA5 File Offset: 0x001FACA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BCC8 RID: 48328 RVA: 0x001FCAB0 File Offset: 0x001FACB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.WorkbenchId = input.ReadUInt32();
					}
				}
				else
				{
					this.workbenchFuncList_.AddEntriesFrom(ref input, RogueTournWorkbenchInfo._repeated_workbenchFuncList_codec);
				}
			}
		}

		// Token: 0x04004BF8 RID: 19448
		private static readonly MessageParser<RogueTournWorkbenchInfo> _parser = new MessageParser<RogueTournWorkbenchInfo>(() => new RogueTournWorkbenchInfo());

		// Token: 0x04004BF9 RID: 19449
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004BFA RID: 19450
		public const int WorkbenchIdFieldNumber = 10;

		// Token: 0x04004BFB RID: 19451
		private uint workbenchId_;

		// Token: 0x04004BFC RID: 19452
		public const int WorkbenchFuncListFieldNumber = 7;

		// Token: 0x04004BFD RID: 19453
		private static readonly FieldCodec<WorkbenchFuncIdInfo> _repeated_workbenchFuncList_codec = FieldCodec.ForMessage<WorkbenchFuncIdInfo>(58U, WorkbenchFuncIdInfo.Parser);

		// Token: 0x04004BFE RID: 19454
		private readonly RepeatedField<WorkbenchFuncIdInfo> workbenchFuncList_ = new RepeatedField<WorkbenchFuncIdInfo>();
	}
}
